@require('./variables.styl')

.k-card
    border-radius $border-radius
    background $card-bg-color
    > .k-header
        height $card-header-height 
        line-height @height
        padding 0 $card-padding 
        > .k-title
            font-size $card-header-font-size
            display inline-block
        > .k-extra
            float right
            height 100%
            display flex
            align-items center
    > .k-body
        padding 0 $card-padding $card-padding

    // type
    &.k-shadow
        box-shadow $card-box-shadow
    &.k-none
        box-shadow none
    &.k-border
        border $card-border
        > .k-header
            border-bottom $card-border
        > .k-body
        /.k-no-header > .k-body
            padding-top $card-padding 

    // grid
    &.k-card-grid
        > .k-body
            display flex
            padding 0
        &.k-border
            .k-column:not(:last-of-type)
                border-right $card-border
    .k-column
        display flex
        align-items center
        padding $card-padding 
        &.k-fluid
            flex 1
        &.k-center
            justify-content center


requireTheme('card')
